package com.zretc.kscxmz.entity;

import java.util.List;

/**
 * @author zengyanjun
 * @date 2020-07-25
 * 回复实体类
 */
public class Reply {
    private Integer replyId;//回复编号
    private String content;//回复内容
    private String replyTime;//回复时间
    private Integer discussId;//回复对应的讨论编号（外键）
    private Integer replyUserId;//回复者（外键）
    private String replyUserName;//回复者名
    private List<Comment> comments;//回复下对应的评论列表
    public Reply() {
    }

    public Reply(Integer replyId, String content, String replyTime, Integer discussId, Integer replyUserId) {
        this.replyId = replyId;
        this.content = content;
        this.replyTime = replyTime;
        this.discussId = discussId;
        this.replyUserId = replyUserId;
    }

    public String getReplyUserName() {
        return replyUserName;
    }

    public void setReplyUserName(String replyUserName) {
        this.replyUserName = replyUserName;
    }

    public List<Comment> getComments() {
        return comments;
    }

    public void setComments(List<Comment> comments) {
        this.comments = comments;
    }

    public Integer getReplyId() {
        return replyId;
    }

    public void setReplyId(Integer replyId) {
        this.replyId = replyId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(String replyTime) {
        this.replyTime = replyTime;
    }

    public Integer getDiscussId() {
        return discussId;
    }

    public void setDiscussId(Integer discussId) {
        this.discussId = discussId;
    }

    public Integer getReplyUserId() {
        return replyUserId;
    }

    public void setReplyUserId(Integer replyUserId) {
        this.replyUserId = replyUserId;
    }

    @Override
    public String toString() {
        return "Reply{" +
                "replyId=" + replyId +
                ", content='" + content + '\'' +
                ", replyTime='" + replyTime + '\'' +
                ", discussId=" + discussId +
                ", replyUserId=" + replyUserId +
                '}';
    }
}
